<!--
author: 何其沆(pooky)
desc: Pool - Account Pool 展开形式2
date: 2021-11-12
-->
<template>
  <div class="expend">
    <div class="expend-left">
      <div class="share">
        <div class="share-title">Share to</div>
        <div
          v-if="record.clientPhaseInfo[0] && record.clientPhaseInfo[0].clientShareList.length > 0"
          class="share-content">
          <span
            v-for="(item, index) in record.clientPhaseInfo[0].clientShareList"
            :key="index"
            style="margin-right: 12px"
            >{{ item.displayName }}</span
          >
        </div>
      </div>
      <div class="remark">
        <div class="remark-title">Remark</div>
        <div class="remark-content">
          {{ record.description }}
        </div>
      </div>
    </div>
    <div class="expend-right">
      <div
        v-if="
          !record.clientPhaseInfo[0] ||
          (record.clientPhaseInfo[0] && record.clientPhaseInfo[0].clientPhareList[0].isActive)
        "
        class="phase0">
        <div class="phase0-item">Phase 0</div>
      </div>
      <Progress
        v-if="record.clientPhaseInfo[0] && !record.clientPhaseInfo[0].clientPhareList[0].isActive"
        :tags="record.tags"
        :clientPhaseList="record.clientPhaseInfo[0].clientPhareList" />
    </div>
  </div>
</template>

<script setup>
import Progress from '@/pages/components/Progress.vue'
defineProps({
  record: Object
})
</script>

<style scoped lang="less">
.expend {
  width: 100%;
  border-left: 1px solid @border-color;
  border-right: 1px solid @border-color;
  background-color: @white;
  display: flex;
  box-sizing: border-box;
  .expend-left {
    width: 29.32%;
    border-right: 1px solid @border-color;
    box-sizing: border-box;
    .share {
      width: 100%;
      min-height: 40px;
      border-bottom: 1px solid @border-color;
      display: flex;
      box-sizing: border-box;
      .share-content {
        min-height: 40px;
        line-height: 40px;
        padding-left: 12px;
        box-sizing: border-box;
        color: @text-black;
        font-size: 14px;
      }
    }
    .remark {
      width: 100%;
      min-height: 140px;
      display: flex;
      box-sizing: border-box;
      .remark-content {
        padding: 12px 65px 44px 12px;
      }
    }
    .share-title,
    .remark-title {
      padding-top: 11px;
      width: 96px;
      padding-left: 12px;
      color: @black-85p;
      font-size: 14px;
      border-right: 1px solid @border-color;
      background-color: @milk;
    }
    .share-content,
    .remark-content {
      flex: 1;
      box-sizing: border-box;
      color: @text-black;
      font-size: 14px;
    }
  }
  .expend-right {
    width: 70.68%;
    display: flex;
    justify-content: center;
    align-items: center;
    .phase0 {
      width: 100%;
      height: 100%;
      background: url('@/assets/images/phase0.png') no-repeat;
      background-size: 100% 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      .phase0-item {
        width: 88px;
        height: 32px;
        font-size: 14px;
        border: 1px solid #beb7b7;
        background-color: #d9cfcf;
        color: #979191;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
}
</style>
